import Vue from 'vue'

import VueRouter from 'vue-router'

import Login from '../view/login'
import Enroll from '../view/enroll'
import Article from '../view/article'
import Listing from '../view/listing'

Vue.use(VueRouter)

const router = new VueRouter({
  routes: [
    {
      path: '/login',
      component: Login,
    },
    {
      path: '/enroll',
      component: Enroll,
    },
    {
      path: '/article',
      component: Article,
    },
    {
      path: '/listing',
      component: Listing,
    },
  ],
  linkExactActiveClass: 'active',
})

export default router
